package cn.dkk.behavior_design.template_mothed.interface_impl;

import cn.dkk.behavior_design.template_mothed.interface_impl.pojo.Bank;

/**
 * @author dkk
 * @date 2022/7/19
 * @desc 模板方法模式测试类(接口实现)
 * 利用接口实现lambda表达式传递方法
 */
public class Test {
    public static void main(String[] args) {
        Bank bank = new Bank();
        bank.doSomething(() -> System.out.println("小企业客户办理业务"));
        bank.doSomething(() -> System.out.println("公司类客户办理业务"));
    }
}
